@extends('layouts.default')
@section('content') 
<div class="box">
    <header>
        <div class="icons">
            <i class="fa fa-table"></i>
        </div>
        <h5>{{ Lang::get('messages.other_repairs_added') }}</h5>
    </header>
    <table id="dataTable"  style="width:100%" class="table table-bordered table-condensed table-hover table-striped">
        <thead style="width:100%">
            <tr>
                <th>{{Lang::get('messages.repair')}}</th>
                <th>{{Lang::get('messages.user')}}</th>
                <th>{{Lang::get('messages.action')}}</th>
            </tr>
        </thead>
        <tbody  style="width:100%">                          
            @foreach ($added_repairs as $a)
            <tr> 
                <td>{{ $a->repair }}</td>    
                <td>{{ $a->Username}}</td>  
                <td>{{ Helpers\Helper::fa_link_to_action('glyphicon glyphicon-check',
                                        'RepairController@edit',Lang::get('messages.edit_btn'),array('id'=>$a->id),array(
                            'class'=>'btn btn-success btn-sm btn-round'))
                    }}                               
                </td>                                
                @endforeach
        </tbody>
    </table>
    <a type="button" class="btn btn-danger btn-line" href='{{URL::to('repair_parts')}}'>{{Lang::get('messages.back_btn')}}</a>
</div>
@stop
